package org.jeecg.modules.data.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: t_data_statistics
 * @Author: jeecg-boot
 * @Date:   2025-05-20
 * @Version: V1.0
 */
@Data
@TableName("t_data_statistics")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="t_data_statistics对象", description="t_data_statistics")
public class TDataStatistics implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
    /**年份*/
    @Excel(name = "年份", width = 15)
    @ApiModelProperty(value = "年份")
    private Integer year;
    /**统计名称*/
    @Excel(name = "统计名称", width = 15)
    @ApiModelProperty(value = "统计名称")
    private String name;
	/**调查发布ID*/
	@Excel(name = "调查发布ID", width = 15)
    @ApiModelProperty(value = "调查发布ID")
    private String investigationId;
	/**地市*/
	@Excel(name = "地区编码", width = 15)
    @ApiModelProperty(value = "地区编码-县区")
    private String cantCode;
	/**地市名称*/
	@Excel(name = "地区名称", width = 15)
    @ApiModelProperty(value = "地区名称-县区")
    private String cantName;
	/**统计类型，1省2地市3区县*/
	@Excel(name = "统计类型，1省2地市3区县", width = 15)
    @ApiModelProperty(value = "统计类型，1省2地市3区县")
    private String type;
	/**乡镇个数*/
	@Excel(name = "乡镇个数", width = 15)
    @ApiModelProperty(value = "乡镇个数")
    private Integer townCount;
	/**采样点数*/
	@Excel(name = "采样点数", width = 15)
    @ApiModelProperty(value = "采样点数")
    private Integer samplingPointCount;
	/**平均损失率*/
	@Excel(name = "平均损失率", width = 15)
    @ApiModelProperty(value = "平均损失率")
    private BigDecimal averageLossRate;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable ="sys_user",dicText = "realname",dicCode = "username")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "调查发布名称")
    private String investigationName;

    @TableField(exist = false)
    @ApiModelProperty(value = "市编码")
    private String city;
    @TableField(exist = false)
    @ApiModelProperty(value = "市名称")
    private String cityName;
    @TableField(exist = false)
    @ApiModelProperty(value = "省编码")
    private String province;
    @TableField(exist = false)
    @ApiModelProperty(value = "省名称")
    private String provinceName;

    @TableField(exist = false)
    @ApiModelProperty(value = "联系电话")
    private String phone;
    @TableField(exist = false)
    @ApiModelProperty(value = "真实姓名")
    private String realname;
    @TableField(exist = false)
    @ApiModelProperty(value = "标题")
    private String title;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否有子节点")
    private Boolean hasChildren;

    /**作物类型*/
    @TableField(exist = false)
    @ApiModelProperty(value = "作物类型")
    @Dict(dicCode = "crop_type")
    private String cropType;
}
